#include "setwsdialog.h"
#include "ui_setwsdialog.h"

setWSDialog::setWSDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::setWSDialog)
{
    ui->setupUi(this);
}

setWSDialog::~setWSDialog()
{
    delete ui;
}
void setWSDialog::setWS(QString ip, int port)
{
    ui->lineEdit_ip->setText(ip);
    ui->lineEdit_port->setText(QString("%1").arg(port));
}
QString setWSDialog::getWS_ip()
{
    return ui->lineEdit_ip->text();
}
int setWSDialog::getWS_port()
{
    return ui->lineEdit_port->text().toInt();
}
